import request from '@/utils/request'

const api_name = '/admin/acl/user'

export default {
    getByUsername(username) {
        return request({
            url: `${api_name}/getByUsername/${username}`,
            method: 'get',
        })
    },
    saveUser(user) {
        return request({
            url: `${api_name}/update`,
            method: 'put',
            data: user
        })
    }
}